set(MYSQL_ROOT ${CMAKE_SOURCE_DIR}/libs/mysql)
set(MYSQL_RUNTIME_DIR ${MYSQL_ROOT}/x64)

include_directories(${MYSQL_ROOT}/include)
link_directories(${MYSQL_ROOT}/x64)
link_libraries(libmysql)

file(GLOB MYSQL_RUNTIME_FILES ${MYSQL_RUNTIME_DIR}/*.dll)
execute_process(COMMAND ${CMAKE_COMMAND} -E
    copy_if_different ${MYSQL_RUNTIME_FILES} ${BIN_DESTDIR})
